﻿using DataBaseConnect.IRepositories;
using Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataBaseConnect.Repositories
{
    public class FlowRepository : FonourRepositoryBase<Flow>, IFlowRepository
    {
        public FlowRepository(MyDataBase dbContext) : base(dbContext)
        {

        }

        /// <summary>
        /// 获取所有流程分类
        /// </summary>
        /// <returns></returns>
        public List<FlowType> GetFlowTypesAll()
        {
            return _dbContext.Set<FlowType>().ToList();
        }
    }
}
